//
//  UIButtonExtention.swift
//  LiuWeiBo
//
//  Created by 刘晓晨 on 2017/3/31.
//  Copyright © 2017年 刘晓晨. All rights reserved.
//

import UIKit

extension UIButton {
    
    convenience init(titleStr:String, image:String, fontSzie:CGFloat) {
        self.init()
        
        self.setTitle(titleStr, for: .normal)
        self.setTitleColor(UIColor.darkGray, for: .normal)
        self.titleLabel?.font = UIFont.systemFont(ofSize: fontSzie)
        self.setImage(UIImage(named:image), for: .normal)
    }
}
